package com.by.orders.service.impl;

import com.by.orders.entity.Addr;
import com.by.orders.mapper.OrderAddrMapper;
import com.by.orders.service.OrderAddrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderAddrServiceImpl implements OrderAddrService {

    @Autowired
    OrderAddrMapper orderAddrMapper;

    /**
     * 保存订单地址
     * @param addr
     * @return
     */
    @Override
    public int saveOrderAddr(Addr addr) {
        return orderAddrMapper.insertOrderAddr(addr);
    }
}
